{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>noticeContent</title>
    <link rel="stylesheet" href="{% static 'css/noticeContent.css' %}">
</head>
<body>

    <div class="notice-gray-area">
        <p class="notice-title">标题：{{ notice.notice_title }}</p>
        <div class="notice-date">发布日期：{{ notice.notice_date }}</div>
        <div class="adm-id">添加者id：{{ notice.admId_id }}</div>
        <div class="notice-content">
            <p>公告内容：{{ notice.notice_content|linebreaks }}</p>
        </div>
        <div class="notice-actions">
            {% if flag == 'adm' %}
                <form action="/noticeAddAlter/" method="post">
                    {% csrf_token %}
                    <input type="hidden" name="form_id" value="alter">
                    <input type="hidden" name="admId_id" value="{{ notice.admId_id }}">
                    <input type="hidden" name="notice_id" value="{{ notice.notice_id }}">
                    <input type="submit" value="编辑">
                </form>
            {% endif %}
            <p></p>
            <a href="{% if flag == 'adm' %}/adm_index{% else %}/stu_index{% endif %}">返回</a>
        </div>
    </div>
</body>
</html>